home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2767 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  788 b 

  1. Path: ping.be!news
  2. From: Peter.Stuer@ping.be (Peter Stuer)
  3. Newsgroups: comp.lang.c++
  4. Subject: const problem & DEC C++ compiler
  5. Date: Fri, 19 Jan 1996 17:28:32 GMT
  6. Organization: PING Belgium
  7. Message-ID: <30ffcf45.4304009@news.ping.be>
  8. NNTP-Posting-Host: dialup26.antwerp.eunet.be
  9. X-Newsreader: Forte Agent .99c/16.141
  10.  
  11. We created a template function implementation of the QuickSort
  12. algorithm. However, the DEC C++ compiler (AXP version 5.0-003) seems
  13. to generate code that causes an access violation when we compile it
  14. using the /optimize=(inline=all) qualifier. The template is defined as
  15. followed:
  16.  
  17. template<class ANY> void QuickSort(ANY * const Array, const int Size)
  18.  
  19. If we remove the 'const' from Array everything runs OK. Can anyone
  20. confirm this ? Is there a patch that fixes this ?
  21.